/**
 * @file exercise_sport_com.c
 *
 */

/*********************
*      INCLUDES
*********************/
#include "exercise.h"

#if USE_LV_WATCH_EXERCISE != 0

/*********************
*      DEFINES
*********************/

/**********************
*      TYPEDEFS
**********************/

/**********************
*  STATIC PROTOTYPES
**********************/

/**********************
*  STATIC VARIABLES
**********************/

/**********************
*      MACROS
**********************/

/**********************
 *   GLOBAL FUNCTIONS
 ***********************/
void exercise_get_sport_info(EXERCISE_TYPE_T type, exercise_sport_info_t * info)
{
    if(NULL == info) {
        printf("%s: warning, info is NULL\n", __FUNCTION__);
        return;
    }

    switch(type) {
    case EXERCISE_TYPE_OUTDOOR_RUNNING:
        exercise_outdoor_running_get_sport_info(info);
        break;

    case EXERCISE_TYPE_OUTDOOR_CYCLING:
        exercise_outdoor_cycling_get_sport_info(info);
        break;

    case EXERCISE_TYPE_WALKING:
        exercise_walking_get_sport_info(info);
        break;

    case EXERCISE_TYPE_FREE_TRAINING:
        exercise_free_training_get_sport_info(info);
        break;

    default:
        printf("%s: unknown type %d\n", __FUNCTION__, type);
        break;
    }
}

/**********************
 *   STATIC FUNCTIONS
 **********************/

#endif /*USE_LV_WATCH_EXERCISE*/
